<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

class WZconfigController extends Controller
{
	/*
		网站修改
	*/
	public function getUpdate()
	{
		return view('admin.WZconfig.update');
	}

	/*
		关闭前台页面
	*/
	public function getDown(Request $request)
	{
		//接收网站的状态
		$status = $request->input('status');

		//将状态存入session
		session()->put('status',$status);

		echo 1;
	}

	/*
		开启前台页面
	*/
	public function getUp(Request $request)
	{
		//移出session
		session()->forget('status');

		echo 1;
	}

}  
